

#ifndef WIN32XX_DOC_H
#define WIN32XX_DOC_H

#include "View.h"

// CDoc holds the application's data. It inherits from CObject
// to perform data serialization to and from the archive.

class CDoc : public CObject
{
public:
    CDoc() {}
    ~CDoc() {}

    std::vector<PlotPoint>& GetAllPoints() {return m_points;}   // returns a vector of PlotPoint data
    const CView& GetView() const;   
    BOOL FileOpen(LPCTSTR szFilename);
    BOOL FileSave(LPCTSTR szFilename);
    void Print();
    void Serialize(CArchive &ar);
    void StorePoint(int x, int y, bool PenDown, COLORREF PenColor);

private:
    std::vector<PlotPoint> m_points;    // Points of lines to draw

};

#endif  // WIN32XX_DOC_H